﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Client
{
    public partial class Private : Form
    {
        public Connection currConn;
        string _UserName, _Name;

        public string getName
        {
            get
            {
                return _Name;
            }
        }
       
        public Private(Connection _conn, string _UserName)
        {
            InitializeComponent();
            this._UserName = _UserName;
            currConn = _conn;
        }
        
        private void button1_Click(object sender, EventArgs e)
        {
           
            currConn.sendtoServ("userpriv", _Name + (char)2 + textBox2.Text);
        }
        public void message(string msg)
        {
            textBox1.Text += (msg + "\r\n");
        }
    }
}
